import request from "@/utils/request";
// 查询上传记录
export function uploadRecord(query) {
  return request({
    url: `/netdisk/fileTransfer/uploadRecord`,
    method: 'get',
    params: query
  })
}
// 查看下载记录
export function downloadRecord(query) {
  return request({
    url: `/netdisk/fileTransfer/downloadRecord`,
    method: 'get',
    params: query
  })
}
// 记录下载记录
export function savedownloadFile(data) {
  return request({
    url: `/netdisk/fileTransfer/downloadFile`,
    method: 'post',
    data
  })
}
// 清空下载记录
export function clearDownloadRecord() {
  return request({
    url: `/netdisk/fileTransfer/clearDownloadRecord`,
    method: 'delete',
  })
}
// 清空上传记录
export function clearUploadRecord() {
  return request({
    url: `/netdisk/fileTransfer/clearUploadRecord`,
    method: 'delete',
  })
}
// 删除上传下载记录
export function deleteTransferRecord(transferType,recordIds) {
  return request({
    url: `/netdisk/fileTransfer/deleteTransferRecord/${transferType}/${recordIds}`,
    method: 'delete',
  })
}
// 课程文件复制到我的文件
export function copyToMyFile(data) {
  return request({
    url: `/netdisk/course/copyToMyFile`,
    method: 'post',
    data
  })
}
